//
//  GLLocalFileStore.h
//  ECERP_Car
//
//  Created by huanggulong on 16/3/3.
//  Copyright © 2016年 com.mamizx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GLLocalFile.h"


@interface GLLocalFileStore : NSObject


/*
 * @huanggulong
 *
 * 保存图片
 * @prama photos:<NSString *>[]
 * @return <GLLocalFile>[]
 */
+ (NSMutableArray *)savePhotos:(NSMutableArray *)photos;

/*
 * @huanggulong
 *
 * 保存图片
 * @prama image : 图片
 * @return 文件模型
 */
+ (GLLocalFile *)saveImage:(UIImage *)image;

/*
 * @huanggulong
 *
 * @prama video:图库文件
 * @prama success(): 成功之后block返回GLLocalFile
 * @prama failure(): 失败之后block返回错误
 */
+(void)saveVideo:(id)video success:(void (^)(GLLocalFile *))success failure:(void (^)(NSError *error))failure;

+ (UIImage *)fixOrientation:(UIImage *)aImage;

@end
